package pattern.platform.aliyun;

import pattern.sms.TemplateCode;

/**
 * 短信模板
 * @author admin
 */
public enum AliTemplateCode {
    /**
     *
     */
    CODE("pattern科技", TemplateCode.CODE, "SMS_227254349", "短信验证码"),
    CODE_FIND("pattern科技", TemplateCode.CODE_FIND, "SMS_227254349", "找回密码短信验证码"),

    ;

    AliTemplateCode(String sign, TemplateCode templateCode, String code, String desc) {
        this.sign = sign;
        this.templateCode = templateCode;
        this.code = code;
        this.desc = desc;
    }

    private TemplateCode templateCode;
    private String code;
    private String desc;
    private String sign;

    public String getSign() {
        return this.sign;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public TemplateCode getTemplateCode() {
        return this.templateCode;
    }

    public static AliTemplateCode getCode(TemplateCode templateCode) {
        for (AliTemplateCode value : AliTemplateCode.values()) {
            if (value.templateCode.equals(TemplateCode.CODE)) {
                return value;
            }
        }
        return null;
    }
}
